<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/templates/modeloSistema.xhtml">

	<ui:define name="menu">
		<ui:include src="/includes/menuPrincipal.xhtml" />
	</ui:define>

	<ui:define name="conteudo">
		<h:body style="background-color: green">
			<h:form id="frmEmpresaListagem">

				<p:dataTable id="tblEmpresa" widgetVar="tabelaEmpresa"
					value="#{MBEmpresa.empresas}" var="item" paginator="true" rows="14"
					scrollable="true">
					<f:facet name="header">
						<h:outputText value="Empresa - Listagem " />
					</f:facet>

					<p:column headerText="Codigo">
						<h:outputText value="#{item.idEmpresa}" />
					</p:column>

					<p:column headerText="Nome">
						<h:outputText value="#{item.nomeEmpresa}" />
					</p:column>


					<p:column headerText="CNPJ">
						<h:outputText value="#{item.cnpj}" />
					</p:column>

					<p:column headerText="Telefone">
						<h:outputText value="#{item.telefone}" />
					</p:column>

				</p:dataTable>


			</h:form>
		</h:body>
	</ui:define>

</ui:composition>